import Vue from 'vue'
import App from './App.vue'
import router from './router'

import axios from  'axios'
import qs from 'qs'
//在axios上绑定一个基础路径
axios.defaults.baseURL = 'http://localhost:9009/myemp';
//把axios对象绑定当 Vue原型对象上
Vue.prototype.$axios = axios ;
Vue.prototype.$qs = qs ;
//使用ElementUI
import ElementUI from 'element-ui'
Vue.use(ElementUI)
import 'element-ui/lib/theme-chalk/index.css';
Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
